package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SuccessBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.SetUserInfoIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class SetUserInfoModel extends RetrofitBaseModel implements SetUserInfoIface<SuccessBean> {
    private AllService allService;
    private Retrofit retrofit;
    public SetUserInfoModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }

    @Override
    public void setUserInfo(String userid, String username, String nickname, String sex, String signature,String birthday, TListener<SuccessBean> tListener) {
        Call<SuccessBean> call = allService.setUserInfo(userid,username,nickname,sex,signature,birthday);
        callenqueue(call,tListener);

    }
}
